//
//  selfcareViewController.m
//  wuyeviewcon
//
//  Created by dsdf on 16/1/16.
//  Copyright © 2016年 joey. All rights reserved.
//

#import "selfcareViewController.h"
#import "CHDDropDownMenu.h"

@interface selfcareViewController ()

@end

@implementation selfcareViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
//    self.navigationController.navigationBar.barTintColor = [[UIColor alloc] initWithRed:230/255.0 green:55/255.0 blue:55/255.0 alpha:1.0];
//    
//    self.navigationItem.title=@"个人名片";
//    self.navigationController.navigationBar.titleTextAttributes=@{NSForegroundColorAttributeName: [UIColor whiteColor],NSFontAttributeName:[UIFont boldSystemFontOfSize:17]};
//    
//    
//    UIButton* button = [UIButton buttonWithType:UIButtonTypeCustom];
//    button.frame = CGRectMake(0, 0, 20, 20);
//    [button setBackgroundImage:[UIImage imageNamed:@"return@2x.png"] forState:UIControlStateNormal];
//    [button addTarget:self action:@selector(messageBtnClick) forControlEvents:UIControlEventTouchUpInside];
//    UIBarButtonItem * rightItem = [[UIBarButtonItem alloc] initWithCustomView:button];
//    self.navigationItem.leftBarButtonItem = rightItem;
//    
//    
//    UIButton* buttonright = [UIButton buttonWithType:UIButtonTypeCustom];
//    buttonright.frame = CGRectMake(0, 0, 36 , 16);
//    [buttonright setBackgroundImage:[UIImage imageNamed:@"全部@2x.png"] forState:UIControlStateNormal];
//    //[buttonright addTarget:self action:@selector(messrightclick) forControlEvents:UIControlEventTouchUpInside];
//    UIBarButtonItem * leftIem = [[UIBarButtonItem alloc] initWithCustomView:buttonright];
//    self.navigationItem.rightBarButtonItem = leftIem;
//    
//    
//    
//}
//
//#pragma mark - 导航右侧按钮的方法
//-(void)messageBtnClick {
//    [self.navigationController popViewControllerAnimated:YES];
//    
//    
//}
//

    
    UIButton *button=[[UIButton alloc]init];
    button.frame=CGRectMake(0, 0, 375, 64);
    button.backgroundColor=[UIColor colorWithRed: 230/255.0 green:55/255.0 blue:55/255.0 alpha:1.0];
    [self.view addSubview:button];
    
    
    UILabel *labletext=[[UILabel alloc]init];
    labletext.frame=CGRectMake(155, 34, 66, 14);
    labletext.text=@"个人名片";
    labletext.adjustsFontSizeToFitWidth=YES;
    labletext.textColor=[UIColor whiteColor] ;
    [self.view addSubview:labletext];
    
    
    
    UIButton *button1=[[UIButton alloc]init ];//]WithFrame:CGRectMake(50, 50, 20, 20)];
    button1.frame=CGRectMake(22, 35, 20, 20);
    [button1 setBackgroundImage:[UIImage imageNamed:@"return@2x.png"] forState:UIControlStateNormal];
    [button1 addTarget:self action:@selector(fanhui:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button1];
    
    UIButton *button2=[[UIButton alloc]init ];//]WithFrame:CGRectMake(50, 50, 20, 20)];
    button2.frame=CGRectMake(307    , 35, 36, 15);
    [button2 setBackgroundImage:[UIImage imageNamed:@"全部@2x.png"] forState:UIControlStateNormal];
    [button2 addTarget:self action:@selector(alljiob:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button2];
    
    
    
    
    
    
}
- (IBAction)fanhui:(id)sender {
    [self dismissModalViewControllerAnimated:YES];
}

- (IBAction)alljiob:(id)sender {
//    
//    //列表展示的模型
//    NSMutableArray *arr = [NSMutableArray array];
//    for (int i =0; i<1; i++) {
//        NSMutableArray *temp = [NSMutableArray array];
//        NSInteger row = (i+1)*3;
//        for (int j =0; j<row; j++) {
//            chdModel *model = [[chdModel alloc] init];
//            model.text = [NSString stringWithFormat:@"幸福小区%@栋%@单元",@(i),@(j)];
//            if (( i == 2 && j >= 2 && j < 4) || ( i == 2 && j == 7)) {
//                model.isSub = YES;
//            }
//            
//            [temp addObject:model];
//        }
//        [arr addObject:temp];
//    }
//    
//    //上边按钮展示的模型,此模型对text赋值即可.
//    NSMutableArray *ShowArr = [NSMutableArray array];
//    for (int i =0; i<1; i++) {
//        NSMutableArray *temp = [NSMutableArray array];
//        NSInteger row = (i+1)*3;
//        for (int j =0; j<row; j++) {
//            chdModel *model = [[chdModel alloc] init];
//            model.text = [NSString stringWithFormat:@"幸福小区%@栋%@单元",@(i),@(j)];
//            [temp addObject:model];
//        }
//        [ShowArr addObject:temp];
//    }
//    
//    
//    
//    
//    [[CHDDropDownMenu alloc] initWithFrame:CGRectMake(123,87,134,14) showOnView:self.view AllDataArr:arr showArr:ShowArr];
//    
//    
}







- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
